#ifndef MYWEBTABMGR_H
#define MYWEBTABMGR_H

#include <QtCore>
#include <QWebEngineProfile>
#include "mywebtab.h"
#include "maindlg.h"
#include "ui_maindlg.h"
#include "mydownloadsdk.h"

class MyWebTabMgr;
class MyWebView;
class MainDlg;

class MyWebTabMgr : public QObject
{
    Q_OBJECT
public:
    explicit MyWebTabMgr(QObject *parent = nullptr);
    void Init(MainDlg* pMain);
    MyWebView *CreateTab(QWebEngineProfile* profile, bool bActive);
public:
    MainDlg* m_pMainDlg;
    MyDownLoadSDK* m_pDownLoadSDK;

signals:
    void sig_notify_msg(QString msg);
    void sig_url_msg(QString msg);
public slots:
    void tabCloseRequested(int nIndex);
    void currentChanged(int nIndex);

};

#endif // MYWEBTABMGR_H
